package com.pojo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class User {
    private Integer id;
    private String name;
    @NotNull(message = "密码不能为空")
    private String mima;
    @NotNull(message = "卡号不能为空")
    @Pattern(regexp = "1\\d{10}", message = "{number.not.correct}")
    private String number;
    private Double huafei;
    private Integer taocan;
    private String jilu;
    private Double remaining_time;    // 剩余通话时间
    private Integer remaining_duanxin; // 剩余短信条数
    private Double remaining_liuliang; // 剩余流量

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMima() {
        return mima;
    }

    public void setMima(String mima) {
        this.mima = mima;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Double getHuafei() {
        return huafei;
    }

    public void setHuafei(Double huafei) {
        this.huafei = huafei;
    }

    public Integer getTaocan() {
        return taocan;
    }

    public void setTaocan(Integer taocan) {
        this.taocan = taocan;
    }

    public String getJilu() {
        return jilu;
    }

    public void setJilu(String jilu) {
        this.jilu = jilu;
    }

    public Double getRemaining_time() {
        return remaining_time;
    }

    public void setRemaining_time(Double remaining_time) {
        this.remaining_time = remaining_time;
    }

    public Integer getRemaining_duanxin() {
        return remaining_duanxin;
    }

    public void setRemaining_duanxin(Integer remaining_duanxin) {
        this.remaining_duanxin = remaining_duanxin;
    }

    public Double getRemaining_liuliang() {
        return remaining_liuliang;
    }

    public void setRemaining_liuliang(Double remaining_liuliang) {
        this.remaining_liuliang = remaining_liuliang;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", mima='" + mima + '\'' +
                ", number='" + number + '\'' +
                ", huafei=" + huafei +
                ", taocan=" + taocan +
                ", jilu='" + jilu + '\'' +
                ", remaining_time=" + remaining_time +
                ", remaining_duanxin=" + remaining_duanxin +
                ", remaining_liuliang=" + remaining_liuliang +
                '}';
    }
}